]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appSwitcher: Don't create thumbnails for destroyed windows
authorAdel Gadllah <adel.gadllah@gmail.com>
Wed, 9 Feb 2011 19:42:44 +0000 (20:42 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Wed, 9 Feb 2011 19:54:37 +0000 (20:54 +0100)
js/ui/altTab.js

index 46c2a09bfc0f92ff8e81e486a1d7d90223864053..28d2b911f711ce97633321f4ba7bc7066d9c360e 100644 (file)
@@ -1081,6 +1081,9 @@ ThumbnailList.prototype = {
 
         for (let i = 0; i < this._thumbnailBins.length; i++) {
             let mutterWindow = this._windows[i].get_compositor_private();
+            if (!mutterWindow)
+                continue;
+
             let windowTexture = mutterWindow.get_texture ();
             let [width, height] = windowTexture.get_size();
             let scale = Math.min(1.0, THUMBNAIL_DEFAULT_SIZE / width, availHeight / height);